package wx.event.entity.weixing;

import lombok.Data;

import javax.servlet.http.HttpServletRequest;

/**
 * 接收微信服务器返回信息
 */
@Data
public class WxRequest {
    private String signature;   //微信加密签名
    private String timestamp;   //时间戳
    private String nonce;       //随机数
    private String echostr;     //随机字符串
    public WxRequest(HttpServletRequest request){
        this.signature = request.getParameter("signature");
        this.timestamp = request.getParameter("timestamp");
        this.nonce = request.getParameter("nonce");
        this.echostr = request.getParameter("echostr");
    }
}
